package com.jerei.plugin.service.impl;

import com.jerei.plugin.dao.IWcmCommonParamDetailDao;
import com.jerei.plugin.entity.WcmCommonParamDetail;
import com.jerei.plugin.service.IWcmCommonParamDetailService;
import com.jerei.utils.condition.ConditionEntity;
import com.jerei.utils.spring.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by sunfeihu on 2016/10/21.
 */
@Service
public class WcmCommonParamDetailServiceImpl implements IWcmCommonParamDetailService {

    @Autowired
    private IWcmCommonParamDetailDao iWcmCommonParamDetailDao;

    @Override
    public WcmCommonParamDetail save(WcmCommonParamDetail entity) {
        return iWcmCommonParamDetailDao.save(entity);
    }

    @Override
    public int delete(Long id) {
        return iWcmCommonParamDetailDao.delete(id);
    }

    @Override
    public int update(WcmCommonParamDetail entity) {
        return iWcmCommonParamDetailDao.update(entity);
    }

    @Override
    public WcmCommonParamDetail find(Long id) {
        return iWcmCommonParamDetailDao.find(id);
    }


    @Override
    public void save(List<WcmCommonParamDetail> list) {
        iWcmCommonParamDetailDao.save(list);
    }

    @Override
    public void delete(List<Long> ids) {
        iWcmCommonParamDetailDao.delete(ids);
    }

    @Override
    public void update(List<WcmCommonParamDetail> list) {
        iWcmCommonParamDetailDao.update(list);
    }

    @Override
    public PageBean<WcmCommonParamDetail> page(int nowPage, int pageSize, ConditionEntity conditionEntity) {
        return iWcmCommonParamDetailDao.page(nowPage, pageSize, conditionEntity);
    }

    @Override
    public List<WcmCommonParamDetail> getByParamId(Long paramId) {
        return iWcmCommonParamDetailDao.getByParamId(paramId);
    }

    @Override
    public List<WcmCommonParamDetail> getAll() {
        return iWcmCommonParamDetailDao.getByAll();
    }
}
